// components/navbar/navbar.js
Component({

  /**
   * 页面的初始数据
   */
  properties: {
    title: { 
      type: String,
      value: ""
    },
    leftTitle: { 
      type: String,
      value: ""
    },
    navHeight: {
      type: Number,
      value: 20
    }
  },
  data: {
    
  },
  attached() {
    const res = wx.getSystemInfoSync()
    var statusbarH = res.statusBarHeight
    this.setData({
      statusbar: statusbarH
    })
  },
  methods: {
    onClickLeftAction: function () {
      this.triggerEvent("onClickAction");
    }
  }
})